package top.healthylife.gateway.platform.eye.dto.jingyingfengxian.EyeReqStockPledgeDetailListDto.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.healthylife.gateway.dto.annotation.ApiField;
import top.healthylife.gateway.dto.processor.GroupOneMustBeFilledInProcessor;
import top.healthylife.gateway.dto.request.req.ApiReqDto;

import javax.validation.constraints.NotNull;

/**
* @author: GenUtil
* @date: 2020-12-11 23:39:04
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel("质押明细详情[1022]")
public class EyeReqStockPledgeDetailListDto extends ApiReqDto {

    @ApiField(value = "质押id", necessity = true)
    @JsonProperty("businessId")
    @ApiModelProperty(value = "质押id", example = "49o1ecbae1bb82282dbe7a1aflbf1f36")
    private String businessId;

    @ApiField(value = "公司id", necessity = true, group = GroupOneMustBeFilledInProcessor.class)
    @NotNull(message = "公司id")
    @JsonProperty("id")
    @ApiModelProperty(value = "公司id", example = "7996092")
    private String id;

}
